package com.richstone.dto;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class PageType<T> implements Serializable {
	
	private int pageindex ;
	private int pagesize ;
	private long total;
	private T entity;

	private Map<String, Object> data = new HashMap<String, Object>();

	public int getPageindex() {
		return pageindex;
	}

	public void setPageindex(int pageindex) {
		this.pageindex = pageindex;
	}

	public int getPagesize() {
		return pagesize;
	}

	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public T getEntity() {
		return entity;
	}

	public void setEntity(T entity) {
		this.entity = entity;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "PageType [pageindex=" + pageindex + ", pagesize=" + pagesize + ", total=" + total + ", entity=" + entity
				+ ", data=" + data + "]";
	}
	

	

}